﻿Imports System.ComponentModel.DataAnnotations
Imports System.Runtime.Serialization
Namespace DataContract

    '<KnownType(GetType(IDictionary))>
    <DataContract(Namespace:="PowerShellCron")>
    <KnownType(GetType(DateTimeOffset?))>
    Public Class JobInfo
        <DataMember> Public JobId As Integer
        <DataMember> Public Name As String
        <DataMember> Public NextRun As DateTimeOffset?
        <DataMember> Public Interval As Decimal?
        <DataMember> Public IntervalType As Service.IntervalTypes?
        <DataMember> Public IntervalScript As String
        <DataMember> Public Script As String
        <DataMember> Public ForceDebug As Boolean = False
        <DataMember> Public ForceVerbose As Boolean = False
        <DataMember> Public AllowMultiple As Boolean = False
        <DataMember> Public DefaultParameters As IDictionary
    End Class
End Namespace
